Pg no::-25
The message loop continously scans for the message(that are generated  by event like key press or click)
The window is displayed as long as the message loop runs.when the message loop terminates,winmain returns immediately.
Message queue is maintained for each window so that messge 2 can put in it when message 1 is being processed.
Message queue accomphlishes three things:
1] We don't  need to execute two message simultaneously thus avoiding conflicts between them.
2] Message are not missed out.
3]Message are proceed on a first come first server basic.
GetMessage retrives message form message queue.
Translate message does keyboard translation.
Dispatch message passes message to the window as  which then calls the corresponding window procedure.

* The window procedure :-
This the place whrer real action accurs.
This procedure dtermines what is displaed and how inputs are handled.
This procedure is generally not callde directly.
It can have switch case structure. 